package com.harlan.viewbindingstudy;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.harlan.viewbindingstudy.base.mvp.XFragment;
import com.harlan.viewbindingstudy.databinding.FragmentBlank4Binding;
import com.harlan.viewbindingstudy.mvp.present.BlankFragmentPresent;

import org.jetbrains.annotations.NotNull;


public class BlankFragment4 extends XFragment<BlankFragmentPresent> {


    public BlankFragment4() {
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    FragmentBlank4Binding blank4Binding;

    @Nullable
    @org.jetbrains.annotations.Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);

    }

    @Override
    protected View initViewBinding(@NonNull @NotNull LayoutInflater inflater) {
        blank4Binding = FragmentBlank4Binding.inflate(inflater);
        return blank4Binding.getRoot();
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        getP().updataImag();
    }

    @Override
    public int getLayoutId() {
        return 0;
    }

    public void showData(String s) {
        blank4Binding.imageUrl.setText(s);
    }

    @Override
    public BlankFragmentPresent newP() {
        return new BlankFragmentPresent();
    }
}